package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.StudentActivityComprehensiveScoreMapper;
import com.ruoyi.stuinfo.domain.StudentActivityComprehensiveScore;
import com.ruoyi.stuinfo.service.IStudentActivityComprehensiveScoreService;

/**
 * 学生活动综测Service业务层处理
 *
 * @author zc
 * @date 2025-05-15
 */
@Service
public class StudentActivityComprehensiveScoreServiceImpl implements IStudentActivityComprehensiveScoreService
{
    @Autowired
    private StudentActivityComprehensiveScoreMapper studentActivityComprehensiveScoreMapper;

    /**
     * 查询学生活动综测
     *
     * @param id 学生活动综测主键
     * @return 学生活动综测
     */
    @Override
    public StudentActivityComprehensiveScore selectStudentActivityComprehensiveScoreById(Long id)
    {
        return studentActivityComprehensiveScoreMapper.selectStudentActivityComprehensiveScoreById(id);
    }

    /**
     * 查询学生活动综测列表
     *
     * @param studentActivityComprehensiveScore 学生活动综测
     * @return 学生活动综测
     */
    @Override
    public List<StudentActivityComprehensiveScore> selectStudentActivityComprehensiveScoreList(StudentActivityComprehensiveScore studentActivityComprehensiveScore)
    {
        return studentActivityComprehensiveScoreMapper.selectStudentActivityComprehensiveScoreList(studentActivityComprehensiveScore);
    }

    /**
     * 新增学生活动综测
     *
     * @param studentActivityComprehensiveScore 学生活动综测
     * @return 结果
     */
    @Override
    public int insertStudentActivityComprehensiveScore(StudentActivityComprehensiveScore studentActivityComprehensiveScore)
    {
        return studentActivityComprehensiveScoreMapper.insertStudentActivityComprehensiveScore(studentActivityComprehensiveScore);
    }

    /**
     * 修改学生活动综测
     *
     * @param studentActivityComprehensiveScore 学生活动综测
     * @return 结果
     */
    @Override
    public int updateStudentActivityComprehensiveScore(StudentActivityComprehensiveScore studentActivityComprehensiveScore)
    {
        return studentActivityComprehensiveScoreMapper.updateStudentActivityComprehensiveScore(studentActivityComprehensiveScore);
    }

    /**
     * 批量删除学生活动综测
     *
     * @param ids 需要删除的学生活动综测主键
     * @return 结果
     */
    @Override
    public int deleteStudentActivityComprehensiveScoreByIds(Long[] ids)
    {
        return studentActivityComprehensiveScoreMapper.deleteStudentActivityComprehensiveScoreByIds(ids);
    }

    /**
     * 删除学生活动综测信息
     *
     * @param id 学生活动综测主键
     * @return 结果
     */
    @Override
    public int deleteStudentActivityComprehensiveScoreById(Long id)
    {
        return studentActivityComprehensiveScoreMapper.deleteStudentActivityComprehensiveScoreById(id);
    }

    @Override
    public List<StudentActivityComprehensiveScore> selectStudentActivityComprehensiveScoreList_handteacher(String teacherId) {
        return studentActivityComprehensiveScoreMapper.selectStudentActivityComprehensiveScoreList_handteacher(teacherId);
    }

    @Override
    public List<StudentActivityComprehensiveScore> selectStudentActivityComprehensiveScoreList_Xiteacher(String teacherId) {
        return studentActivityComprehensiveScoreMapper.selectStudentActivityComprehensiveScoreList_Xiteacher(teacherId);
    }

    @Override
    public List<StudentActivityComprehensiveScore> selectStudentActivityComprehensiveScoreList_student(String teacherId) {
        return studentActivityComprehensiveScoreMapper.selectStudentActivityComprehensiveScoreList_student(teacherId);
    }
}
